package mh.entity;

import java.util.HashMap;

import mh.entity.object.EntityObject;
import mh.entity.player.EntityPlayer;
import mh.entity.spell.EntitySpell;

public class EntityList {

	private static final HashMap<Integer, EntityObject>	OBJECTS_AVAILABLE	= new HashMap<Integer, EntityObject>();
	private static final HashMap<Integer, EntitySpell>	ACTIVE_SPELLS		= new HashMap<Integer, EntitySpell>();
	private static final HashMap<Integer, EntityPlayer>	PLAYERS				= new HashMap<Integer, EntityPlayer>();

	public static void addObject(int id, EntityObject obj) {
		OBJECTS_AVAILABLE.put(id, obj);
	}

	public static EntityObject getObject(int id) {
		return OBJECTS_AVAILABLE.get(id);
	}

	public static void removeObject(int id) {
		OBJECTS_AVAILABLE.remove(id);
	}

	public static void addSpell(int id, EntitySpell obj) {
		ACTIVE_SPELLS.put(id, obj);
	}

	public static EntitySpell getSpell(int id) {
		return ACTIVE_SPELLS.get(id);
	}

	public static void removeSpell(int id) {
		ACTIVE_SPELLS.remove(id);
	}
}
